package com.ccp.dev.qbdms.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.core.basic.web.query.QueryFilter;
import com.ccp.dev.qbdms.model.WQbdFlightJczb;
import com.ccp.dev.qbdms.model.WRewardsMoneyAllocation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 奖惩金额分配表
 *
 * @author hw
 * @date 2020-05-25 15:16:44
 */
@Mapper
public interface WRewardsMoneyAllocationDao extends IBaseMapper<WRewardsMoneyAllocation,String> {
    List<WRewardsMoneyAllocation> queryAll(QueryFilter queryFilter);

    List<WRewardsMoneyAllocation> getListByRefId(@Param("id") String refId);

//    计划用
    List<WQbdFlightJczb> getListByRefIdJH(@Param("id") String refId);

//    编审用
    List<WRewardsMoneyAllocation> getListByRefIdBS(@Param("refId") String refId);

    /**
     * 根据外键进行删除奖惩金额分配数据
     * @param refId
     * @return
     */
    int delByRefId(@Param("refId") String refId);
}
